﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZU.ZP.Data.Models
{
    /// <summary>
    /// 聊天记录表
    /// </summary>
    public class Message
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int? Id { get; set; }
        /// <summary>
        /// 发送人邮箱
        /// </summary>
        public string FromEmail { get; set; }
        /// <summary>
        /// 接收人邮箱
        /// </summary>
        public string ToEmail { get; set; }
        /// <summary>
        /// 客户端唯一标识
        /// </summary>
        public string ToId { get; set; }
        /// <summary>
        /// 发送人名称
        /// </summary>
        public string FromName { get; set; }
        /// <summary>
        /// 接收人名称
        /// </summary>
        public string ToName { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 状态（0:未读，1：已读）
        /// </summary>
        public int ReadState { get; set; }
    }
}
